package com.kingdee.pda.entity

import com.google.gson.annotations.SerializedName
import com.kingdee.pda.entity.OrderSubmitBean.Invdetail
import com.google.gson.Gson
import java.io.Serializable
import java.util.ArrayList

class OrderSubmitBean : Serializable {
    @JvmField
    @SerializedName("inventorynumber")
    var inventorynumber: String? = null

    @JvmField
    @SerializedName("invdetails")
    var invdetails = mutableListOf<Invdetail>()

    class Invdetail {
        // 展示使用 库位编码
        @JvmField
        var warehouseid: String? = null

        // 展示使用 库存状态
        @JvmField
        @SerializedName("invstatus")
        var invstatus: String? = null

        //展示使用 货主
        @JvmField
        @SerializedName("owner")
        var owner: String? = null

        // sku编码
        @JvmField
        var skuCode: String? = null

        // 商品条码
        @JvmField
        var itembarcode: String? = null

        // 实盘数量
        @JvmField
        @SerializedName("invnumber")
        var invnumber: String? = null

        @JvmField
        @SerializedName("ownertype")
        var ownertype: String? = null

        @JvmField
        @SerializedName("ownerid")
        var ownerid: String? = null

        @JvmField
        @SerializedName("skuid")
        var skuid: String? = null

        @JvmField
        @SerializedName("locationid")
        var locationid: String? = null

        // 库位
        var location: String? = null

        @JvmField
        @SerializedName("invstatusid")
        var invstatusid: String? = null

        @SerializedName("invtypeid")
        var invtypeid: String? = null
        override fun toString(): String {
            return Gson().toJson(this)
        }
    }
}